package com.echo.im.engin.packet.in;

import com.echo.im.common.contant.Command;
import com.echo.im.engin.packet.MessagePacket;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 *
 * @author echo
 * @date 2024-08-18
 */
@Data
public class PrivateMessageInPacket extends MessagePacket {

    @NotNull(message = "接收用户id不可为空")
    @Schema(description = "接收用户id")
    private Long recvId;

    @Override
    public Byte getCommand() {
        return Command.PRIVATE_IN_MESSAGE;
    }
}
